import {BSFormatParser} from "./BSFormatParser"

class BSFormatParserV4 extends BSFormatParser {
  constructor(item, data) {
    super(item, data);
    console.log("V4 Song")
  }

  getSongFileName() {
    return this.data["audio"]?.["songFilename"] || "";
  }

  getDiffFile(diffName){
    for(const item of this.data.difficultyBeatmaps){
      if(diffName == item.difficulty)
        return item.beatmapDataFilename;
    }
  }

  getRawBpm(){
    return this.data["audio"]["bpm"] || 0
  }
}

export {BSFormatParserV4}